<template>
	<view>
		<view class="u-p-t-30 mdx-center-xs" v-if="listqy">
			<view class="topLien">
				当前拥有会员（企业）
			</view>
			<view class="list u-flex">
				<view class="u-m-t-10">
					<u-icon size="40" name="/static/user/hui.png"></u-icon>
				</view>
				<view class="u-flex-1 u-m-l-10">
					{{listqy.postName||''}}
				</view>
				<view style="font-size: 28rpx;color: #999999;">{{listqy.creationtime}}</view>
			</view>
		</view>
		<view>
			<view class="u-p-t-30 mdx-center-xs">
				<view class="topLien">
					当前拥有会员（个人）
				</view>
				<view class="list u-flex" v-for="(item,index) in list" :key='index'>
					<view class="u-m-t-10">
						<u-icon size="40" name="/static/user/hui.png"></u-icon>
					</view>
					<view class="u-flex-1 u-m-l-10">
						{{item.jpbsname}}
					</view>
					<view style="font-size: 28rpx;color: #999999;">{{item.expirationtime}}</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [],
				listqy: [],
				qi: '',
				iq: ''
			}
		},
		onLoad() {
			//查询用户岗位交易记录
			this.selectUserMember()

		},
		computed: {
			userInfo() {
				return this.$store.getters['userinfo']
			}
		},
		methods: {
			selectUserMember() {
				// uni.request({
				// 	method:'GET',
				// 	url:this.$api + '/app/PostController/selectUserMember',
				// 	header:{'token':uni.getStorageSync('token')},
				// 	success: (res) => {
				// 		console.log(res.data,'查询岗位会员列表')
				// 		if(res.data.code == 200) {
				// 			if(this.$store.state['userinfo'].characters.characters == '企业用户'){
				// 				this.list1 = res.data.data.tuserEnterprisePost
				// 			} else {
				// 				this.list = res.data.data.tpostmemberList
				// 			}
				// 		} else{

				// 		}
				// 	},
				// 	fail(err) {
				// 		console.log(err)
				// 	}
				// })
				this.$http.get('app/PostController/selectUserMember').then(res => {
					if (res.code == 200) {
						this.listqy = res.data.tuserEnterprisePost
						this.list = res.data.tpostmemberList
					} else {

					}
				})
			},
		}
	}
</script>

<style>
	.topLien {
		padding: 20rpx 0;
		font-size: 30rpx;
		font-weight: 550;
		border-bottom: 1rpx solid #ddd;
	}

	.list {
		padding: 20rpx 0;
		border-bottom: 1rpx solid #ddd;

	}
</style>
